
/****************************************************************************
 *
 *  ALi (Shanghai) Corporation, All Rights Reserved. 2002 Copyright (C)
 *
 *  File: CommDefine.h
 *
 *  Description: define common defines and variables
 *		         
 *  History:
 *      Date		Author      Version		Comment
 *      ====        ======      =======		=======
 *  1   2007.8.23	Tony Wang	1.0			Create
 ****************************************************************************/


#ifndef __COMMDEFINE_H__
#define __COMMDEFINE_H__

#ifdef __cplusplus
extern "C"
{
#endif
#define COMTESTTIMES		1000
#define SENDCMDTIMEOUT		100


#define TRANSFER_RETRY_TIMES 5
#define PACKAGESIZE 1024
#define COMMAND_RETRY_TIMES  5

#define NEW_PROTOCOL_VERSION	0x30

typedef void ( *CALLBACK_PROGRESS)(unsigned int nPercent);
typedef UINT32 ( *CALLBACK_USERABORT)();

#ifdef __cplusplus
}
#endif		/*	__cplusplus		*/

#endif	/* __COMMDEFINE_H__ */

